const { defineConfig } = require('@vue/cli-service')

module.exports = defineConfig({
    transpileDependencies: true,

    devServer: {
        open: false,

        host: '0.0.0.0',

        port: 8089,

        hot: true,

        https: false,

        proxy: {
            '/api': {  // 47.115.32.210
                target: 'http://localhost:80/api/',

                ws: true, // 添加该配置以支持 WebSocket 代理

                changeOrigin: true,

                pathRewrite: {
                    '^/': '/'

                }

            }

        }

    }

})